﻿using Common.Communal;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Warehouse.API.APP.Commands
{
    public class InventoryTransactionAdd:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        [Required]

        public string ProductNumber { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 库房名称
        /// </summary>

        public string WarehouseName { get; set; }

        /// <summary>
        /// 库区名称
        /// </summary>

        public string WarehouseAreaName { get; set; }

        /// <summary>
        /// 库位名称
        /// </summary>

        public string BinLocationName { get; set; }

        /// <summary>
        /// 出入库类别
        /// </summary>

        public string TransactionType { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal? Quantity { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal? UnitPrice { get; set; }

        /// <summary>
        /// 出入库时间
        /// </summary>
        public DateTime? TransactionTime { get; set; }

        /// <summary>
        /// 申请人
        /// </summary>
        public string Applicant { get; set; }

        /// <summary>
        /// 备注说明
        /// </summary>
        public string Remarks { get; set; }
    }
}
